widgets: setTransientParent() when a QMenu is a window
authorDebian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
Sun, 17 Sep 2023 03:46:01 +0000 (04:46 +0100)
committerRaspbian forward porter <root@raspbian.org>
Sun, 17 Sep 2023 03:46:01 +0000 (04:46 +0100)
commita2456a969f47d0a91c608ca7c2e0e53fcb277fd9
treea4460295edea2f0c42bbbdb69868d3c9a51ae22a
parentfca42cd85a1579a162060a203de8aecfe9f7a7da
widgets: setTransientParent() when a QMenu is a window

Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit/?id=493a85a9e4688744
Last-Update: 2022-10-16

On some platforms, such as X11 and Wayland with some compositors,
QMenu could be a popup window, which should be set a transient parent
to get relative position, which is requested by Wayland.

Added transientParentWindow() for QMenuPrivate like QDialogPrivate.

Gbp-Pq: Name qmenu_set_transient_parent.diff
src/widgets/widgets/qmenu.cpp
src/widgets/widgets/qmenu_p.h